/*
** list.h for list in /home/hubert_s//test/list_C
** 
** Made by sevan hubert
** Login   <hubert_s@epitech.net>
** 
** Started on  Tue Feb  8 13:23:52 2011 sevan hubert
** Last update Sun Feb 13 17:40:40 2011 sevan hubert
*/

#ifndef		__LIST_H__
# define	__LIST_H__

#include "item.h"

typedef int bool;

typedef struct s_list
{
  item		*begin;
  item		*end;
  unsigned int  size;
  bool		is_empty;
} t_list;

t_list	*alloc_list();
void	init_list(t_list *to_init);
void	put_begin_list(t_list *list, item *to_put);
void	put_end_list(t_list *list, item *to_put);
void	remove_item_in_list(t_list *list, item *to_remove);
void	remplace_item_in_list(t_list *list, item *to_remove, item *to_put);

#endif
